﻿<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
<!-- main begin-->
  <div class="sale">
    <h1 class="lf">拍卖结束的商品</h1>
    <div class="right rulse">当前用户是：<span class="blue strong"><a href="#" title="" th:text="${session.user.username}"></a></span></div>
    <div class="cl"></div>
  </div>
<div class="items" th:if="${not #lists.isEmpty(auctionEndList)}">
      <ul class="rows even strong">
        <li>名称</li>
        <li>开始时间</li>
        <li>结束时间</li>
        <li>起拍价</li>
        <li class="list-wd">成交价</li>
        <li class="borderno">买家</li>
      </ul>
      <ul th:each="auctionEnd,state:${auctionEndList}" th:class="${state.odd}?'rows':'rows even'" >
        <li ><a href="" title="" th:text="${auctionEnd.auctionname}"></a></li>
        <li th:text="${auctionEnd.auctionstarttime}"></li>
        <li th:text="${auctionEnd.auctionendtime}"></li>
        <li th:text="${auctionEnd.auctionstartprice}"></li>
        <li class="list-wd" th:text="${auctionEnd.auctionprice}"></li>
        <li class="borderno red" ><a href="#" th:text="${auctionEnd.username}"></a></li>
      </ul>
      
  </div>
  	<ul class="rows even strong" th:if="${#lists.isEmpty(auctionEndList)}">
			<li>无记录</li>
		</ul>
  
  <h1>拍卖中的商品</h1>
  <div class="items records" th:if="${not #lists.isEmpty(auctionNotEndList)}">
      <ul class="rows even strong rowh" > 
        <li>名称</li>
        <li>开始时间</li>
        <li>结束时间</li>
        <li>起拍价</li>
        <li class="borderno record">出价记录</li>
        <div class="cl"></div>
      </ul>
    <ul th:each="auction,state:${auctionNotEndList}" th:class="${state.odd?}'rows':'rows even'">
        <li><a href="国书" title="" th:text="${auction.auctionname}"></a></li>
        <li th:text="${auction.auctionstarttime}"></li>
        <li th:text="${auction.auctionendtime}"></li>
        <li th:text="${auction.auctionstartprice}"></li>
        <li class="borderno blue record" th:each="record:${auction.auctionrecords}">
          <p th:text="${record.auctionusername,record.auctionprice}"></p>
        </li>
        
       <!--  <div class="cl"></div> -->
      </ul>
      
        <ul class="rows even strong" th:if="${#lists.isEmpty(auctionNotEndList)}">
			<li>无记录</li>
		</ul>
  </div>
<!-- main end-->
</div>
</body>
</html>
